<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: SkyEngine2d::IDirectRender类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">0.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>SkyEngine2d</b></li><li class="navelem"><a class="el" href="class_sky_engine2d_1_1_i_direct_render.html">IDirectRender</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_sky_engine2d_1_1_i_direct_render-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">SkyEngine2d::IDirectRender类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>Direct11 绘制相关的接口  
 <a href="class_sky_engine2d_1_1_i_direct_render.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_i_direct_render_8h_source.html">IDirectRender.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a71f25ea0bdd04960ce15e1e3d99542aa"><td class="memItemLeft" align="right" valign="top">virtual ID3D11Device *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_i_direct_render.html#a71f25ea0bdd04960ce15e1e3d99542aa">getD3dDevice</a> ()=0</td></tr>
<tr class="memdesc:a71f25ea0bdd04960ce15e1e3d99542aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取d3d 设备  <a href="#a71f25ea0bdd04960ce15e1e3d99542aa">更多...</a><br /></td></tr>
<tr class="separator:a71f25ea0bdd04960ce15e1e3d99542aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a238917a8900e116548a8d7748dfa57e4"><td class="memItemLeft" align="right" valign="top">virtual ID3D11DeviceContext *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_i_direct_render.html#a238917a8900e116548a8d7748dfa57e4">getD3dDeviceContext</a> ()=0</td></tr>
<tr class="memdesc:a238917a8900e116548a8d7748dfa57e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取d3d 设备上下文  <a href="#a238917a8900e116548a8d7748dfa57e4">更多...</a><br /></td></tr>
<tr class="separator:a238917a8900e116548a8d7748dfa57e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8607e9e98ee747245e376415c4579bec"><td class="memItemLeft" align="right" valign="top">virtual ID3D11RenderTargetView *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_i_direct_render.html#a8607e9e98ee747245e376415c4579bec">getD3dRenderTargetView</a> ()=0</td></tr>
<tr class="memdesc:a8607e9e98ee747245e376415c4579bec"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取d3d 渲染目标  <a href="#a8607e9e98ee747245e376415c4579bec">更多...</a><br /></td></tr>
<tr class="separator:a8607e9e98ee747245e376415c4579bec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9fd2043a7a09a78fcc7107d13991700"><td class="memItemLeft" align="right" valign="top">virtual IDXGISwapChain1 *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_i_direct_render.html#ad9fd2043a7a09a78fcc7107d13991700">getD3dSwapChain</a> ()=0</td></tr>
<tr class="memdesc:ad9fd2043a7a09a78fcc7107d13991700"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取d3d 交换链  <a href="#ad9fd2043a7a09a78fcc7107d13991700">更多...</a><br /></td></tr>
<tr class="separator:ad9fd2043a7a09a78fcc7107d13991700"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07077a26fe5c44e84f772be64aa9b32a"><td class="memItemLeft" align="right" valign="top">virtual ID3D11DepthStencilView *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_i_direct_render.html#a07077a26fe5c44e84f772be64aa9b32a">getD3dDepthStencilView</a> ()=0</td></tr>
<tr class="memdesc:a07077a26fe5c44e84f772be64aa9b32a"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取深度缓存视图  <a href="#a07077a26fe5c44e84f772be64aa9b32a">更多...</a><br /></td></tr>
<tr class="separator:a07077a26fe5c44e84f772be64aa9b32a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1e0364f629228100cd373d6502245ba"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_i_direct_render.html#ab1e0364f629228100cd373d6502245ba">ClearDirect3D</a> ()=0</td></tr>
<tr class="memdesc:ab1e0364f629228100cd373d6502245ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">清理d3d  <a href="#ab1e0364f629228100cd373d6502245ba">更多...</a><br /></td></tr>
<tr class="separator:ab1e0364f629228100cd373d6502245ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a186eaa39b2fccb9c0ac0cec4d9d228bd"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_i_direct_render.html#a186eaa39b2fccb9c0ac0cec4d9d228bd">onResize</a> (HWND hwnd, UINT w, UINT h)=0</td></tr>
<tr class="memdesc:a186eaa39b2fccb9c0ac0cec4d9d228bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">重置视图大小  <a href="#a186eaa39b2fccb9c0ac0cec4d9d228bd">更多...</a><br /></td></tr>
<tr class="separator:a186eaa39b2fccb9c0ac0cec4d9d228bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af443c91ea44bcc623a9de2a24770da83"><td class="memItemLeft" align="right" valign="top">virtual ID2D1RenderTarget *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_i_direct_render.html#af443c91ea44bcc623a9de2a24770da83">getD2dRenderTarget</a> ()=0</td></tr>
<tr class="memdesc:af443c91ea44bcc623a9de2a24770da83"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取d2d 渲染目标  <a href="#af443c91ea44bcc623a9de2a24770da83">更多...</a><br /></td></tr>
<tr class="separator:af443c91ea44bcc623a9de2a24770da83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acca444d413763e3c8b5e61d69dcc6c29"><td class="memItemLeft" align="right" valign="top">virtual float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_i_direct_render.html#acca444d413763e3c8b5e61d69dcc6c29">getDpi</a> ()=0</td></tr>
<tr class="memdesc:acca444d413763e3c8b5e61d69dcc6c29"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取dpi 值  <a href="#acca444d413763e3c8b5e61d69dcc6c29">更多...</a><br /></td></tr>
<tr class="separator:acca444d413763e3c8b5e61d69dcc6c29"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Direct11 绘制相关的接口 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="ab1e0364f629228100cd373d6502245ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1e0364f629228100cd373d6502245ba">&#9670;&nbsp;</a></span>ClearDirect3D()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SkyEngine2d::IDirectRender::ClearDirect3D </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>清理d3d </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="af443c91ea44bcc623a9de2a24770da83"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af443c91ea44bcc623a9de2a24770da83">&#9670;&nbsp;</a></span>getD2dRenderTarget()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual ID2D1RenderTarget* SkyEngine2d::IDirectRender::getD2dRenderTarget </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取d2d 渲染目标 </p>
<dl class="section return"><dt>返回</dt><dd>ID2D1RenderTarget* </dd></dl>

</div>
</div>
<a id="a07077a26fe5c44e84f772be64aa9b32a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07077a26fe5c44e84f772be64aa9b32a">&#9670;&nbsp;</a></span>getD3dDepthStencilView()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual ID3D11DepthStencilView* SkyEngine2d::IDirectRender::getD3dDepthStencilView </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取深度缓存视图 </p>
<dl class="section return"><dt>返回</dt><dd>ID3D11DepthStencilView* </dd></dl>

</div>
</div>
<a id="a71f25ea0bdd04960ce15e1e3d99542aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71f25ea0bdd04960ce15e1e3d99542aa">&#9670;&nbsp;</a></span>getD3dDevice()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual ID3D11Device* SkyEngine2d::IDirectRender::getD3dDevice </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取d3d 设备 </p>
<dl class="section return"><dt>返回</dt><dd>ID3D11Device * </dd></dl>

</div>
</div>
<a id="a238917a8900e116548a8d7748dfa57e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a238917a8900e116548a8d7748dfa57e4">&#9670;&nbsp;</a></span>getD3dDeviceContext()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual ID3D11DeviceContext* SkyEngine2d::IDirectRender::getD3dDeviceContext </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取d3d 设备上下文 </p>
<dl class="section return"><dt>返回</dt><dd>ID3D11DeviceContext* </dd></dl>

</div>
</div>
<a id="a8607e9e98ee747245e376415c4579bec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8607e9e98ee747245e376415c4579bec">&#9670;&nbsp;</a></span>getD3dRenderTargetView()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual ID3D11RenderTargetView* SkyEngine2d::IDirectRender::getD3dRenderTargetView </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取d3d 渲染目标 </p>
<dl class="section return"><dt>返回</dt><dd>ID3D11RenderTargetView* </dd></dl>

</div>
</div>
<a id="ad9fd2043a7a09a78fcc7107d13991700"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9fd2043a7a09a78fcc7107d13991700">&#9670;&nbsp;</a></span>getD3dSwapChain()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual IDXGISwapChain1* SkyEngine2d::IDirectRender::getD3dSwapChain </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取d3d 交换链 </p>
<dl class="section return"><dt>返回</dt><dd>IDXGISwapChain1* </dd></dl>

</div>
</div>
<a id="acca444d413763e3c8b5e61d69dcc6c29"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acca444d413763e3c8b5e61d69dcc6c29">&#9670;&nbsp;</a></span>getDpi()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual float SkyEngine2d::IDirectRender::getDpi </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取dpi 值 </p>
<dl class="section return"><dt>返回</dt><dd>float </dd></dl>

</div>
</div>
<a id="a186eaa39b2fccb9c0ac0cec4d9d228bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a186eaa39b2fccb9c0ac0cec4d9d228bd">&#9670;&nbsp;</a></span>onResize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SkyEngine2d::IDirectRender::onResize </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UINT&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UINT&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>重置视图大小 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">HWND</td><td>hwnd 当前窗口句柄 </td></tr>
    <tr><td class="paramname">UINT</td><td>w 视图的宽 </td></tr>
    <tr><td class="paramname">UINT</td><td>h 视图的高 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/render/<a class="el" href="_i_direct_render_8h_source.html">IDirectRender.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
